package org.codingeasy.streamrecord.springboot.configuration;

/**
*   配置类
* @author : KangNing Hu
*/

import static org.codingeasy.streamrecord.springboot.configuration.StreamRecordAutoConfiguration.EXECUTOR_BEAN_NAME;
import static org.codingeasy.streamrecord.springboot.configuration.StreamRecordProperties.PREFIX;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(PREFIX)
public class StreamRecordProperties {

  public static final String  PREFIX = "stream.record";

  /**
   * 线程池名称
   */
  private String threadPollName = EXECUTOR_BEAN_NAME;

  /**
   * 自动装配激活开关
   */
  private boolean enabled;


  public String getThreadPollName() {
    return threadPollName;
  }

  public void setThreadPollName(String threadPollName) {
    this.threadPollName = threadPollName;
  }

  public boolean isEnabled() {
    return enabled;
  }

  public void setEnabled(boolean enabled) {
    this.enabled = enabled;
  }
}
